package com.cxf.windex.controller;

import com.cxf.windex.base.rest.BaseController;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author chenxf
 * @date 4/11/2018
 * @description
 */
@Controller
@RequestMapping("admin")
public class AdminController extends BaseController {
  @RequestMapping(value = "/txmanage",method = RequestMethod.GET)
  public String txmanager(Map<String,Object> map){
    return "admin/txmanage";
  }

  @RequestMapping(value = "/tx",method = RequestMethod.GET)
  public String tx(Map<String,Object> map){
    return "admin/tx";
  }

  @RequestMapping(value = "/bonus",method = RequestMethod.GET)
  public String bonus(Map<String,Object> map){
    return "admin/bonus";
  }

  @RequestMapping(value = "/article",method = RequestMethod.GET)
  public String article(Map<String,Object> map){
    return "admin/article";
  }

  @RequestMapping(value = "/articleAdd",method = RequestMethod.GET)
  public String articleAdd(Map<String,Object> map){
    return "admin/article_add";
  }

  @RequestMapping(value = "/articleView",method = RequestMethod.GET)
  public String articleView(Map<String,Object> map){
    return "admin/article_view";
  }
}
